﻿using RBAC.MaHaiBo.Entity;
namespace RBAC.MaHaiBo.Service
{
    public interface IRoleService
    {
        /// <summary>
        /// 添加角色信息
        /// </summary>
        /// <param name="user">要添加的角色信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddRole(RoleInfo user);
        /// <summary>
        /// 修改角色信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateRole(RoleInfo user);
        /// <summary>
        /// 删除角色信息
        /// </summary>
        /// <param uid="uid">角色编号</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteRole(int uid);
        /// <summary>
        /// 批量角色信息
        /// </summary>
        /// <param name="Ids">数据编号集合</param>
        /// <returns>返回受影响行数</returns>
        Task<int> ByUpdateRole(List<int> Ids);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="uid">角色编号</param>
        /// <returns>返回角色信息</returns>
        Task<RoleInfo> GetRoleInfo(int uid);
        /// <summary>
        /// 显示全部列表
        /// </summary>
        /// <returns>返回角色信息列表</returns>
        Task<FenYeDTO<RoleInfo>> GetRole(int poageiden, int pageSzen, string? Name);
    }
}
